<%@ page import="com.neuedu.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/11/9
  Time: 14:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    //controller --toEdit  edit.jsp
    User user =  new User();
    user.setUsername("admin");
    request.setAttribute("user",user);
    request.setAttribute("html","<h1>我是html文档</h1>");
    request.setAttribute("js","<script>alert(11)</script>");
%>

<c:set var="salary" scope="session" value="${6000*2}"/>
<c:set var="salary" scope="request" value="${4000*2}"/>
<c:set var="salary" scope="page" value="${2000*2}"/>

<%--<jsp:getProperty name="" property=""/>--%>
salary: <c:out value="${salary}" /> <br>


<hr>
<c:remove var="salary" scope="page"/>
remove之后的:<br>
salary: <c:out value="${salary}" /> <br>



</body>
</html>
